<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="https://git.oschina.net/cool_snail/neo-snail.git"%>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="/static/lib/html5.js"></script>
<script type="text/javascript" src="/static/lib/respond.min.js"></script>
<script type="text/javascript" src="/static/lib/PIE_IE678.js"></script>
<![endif]-->
<link href="/static/css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="/static/css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="/static/lib/icheck/skins/all.css" rel="stylesheet" type="text/css" />
<link href="/static/lib/Hui-iconfont/1.0.6/iconfont.css" rel="stylesheet" type="text/css" />
<!--[if IE 6]>
<script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>添加管理员</title>
</head>
<body>
	<div class="pd-20">
		<form:form class="form form-horizontal" method="post" commandName="resource">
			<form:hidden path="id" />
			<form:hidden path="available" />
			<form:hidden path="parentId" />
			<form:hidden path="parentIds" />

			<c:if test="${not empty parent}">
				<div class="row cl">
					<label class="form-label col-3"><label>父节点名称：</label></label>
					<div class="formControls col-5"><input class="input-text" value="${parent.name}" readonly="readonly" /></div>
					<div class="col-4"></div>
				</div>
			</c:if>

			<div class="row cl">
				<label class="form-label col-3"><form:label path="name"><c:if test="${not empty parent}">子</c:if>名称：</form:label></label>
				<div class="formControls col-5">
					<form:input class="input-text" path="name" />
				</div>
				<div class="col-4"></div>
			</div>

			<div class="row cl">
				<label class="form-label col-3"><form:label path="type">类型：</form:label></label>
				<div class="formControls col-5">
					<form:select class="select" path="type" items="${types}" itemLabel="info" />
				</div>
				<div class="col-4"></div>
			</div>

			<div class="row cl">
				<label class="form-label col-3"><form:label path="url">URL路径：</form:label></label>
				<div class="formControls col-5">
					<form:input class="input-text" path="url" />
				</div>
				<div class="col-4"></div>
			</div>

			<div class="row cl">
				<label class="form-label col-3"><form:label path="permission">权限字符串：</form:label></label>
				<div class="formControls col-5">
					<form:input class="input-text" path="permission" />
				</div>
				<div class="col-4"></div>
			</div>

			<div class="row cl">
			<div class="col-5 col-offset-3">
				<form:button type="submit" class="btn btn-primary radius">${op}</form:button>
			</div>
		</div>
		</form:form>
	</div>
</body>
</html>